<div class="page-header">
    <h1>
    	常用配置
        <small>
            <button type="button" class="btn btn-success btn-xs" 
            	data-toggle="modal" 
				data-target="#updateConfigModal" 
				ng-click="addnew()">添加</button>
        </small>    	
    </h1>
</div><!-- /.page-header -->

<div class="row">
    <div class="col-xs-12">
        <!-- PAGE CONTENT BEGINS -->

        <div class="table-responsive">

            <table class="table table-bordered">
                <tr>
                    <th class="center">序号</th>
                    <th class="center">配置项</th>
                    <th class="center">配置值</th>
                    <th class="center">说明</th>
                    <th class="center">操作</th>
                </tr>
                <tr ng-repeat="item in lists">
                    <td class="center">{{$index + 1}}</td>
                    <td>{{item.code}}</td>
                    <td>{{item.value}}</td>
                    <td>{{item.confMemo}}</td>
                    <td>
                        <button type="button" class="btn btn-info btn-xs" 
				            data-toggle="modal" 
				            data-target="#updateConfigModal"
				            ng-click="edit(this)"
                        >编辑</button>
                        <button type="button" class="btn btn-danger btn-xs" ng-click="configDel(item.code)">删除</button>
                    </td>
                </tr>
            </table>
        </div><!-- /.table-responsive -->
    </div><!-- /.col -->
</div><!-- /.row -->


<!-- 模态框（Modal） -->
<div class="modal fade" id="updateConfigModal" tabindex="-1" role="dialog" 
   aria-labelledby="updateConfigModal" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" 
               data-dismiss="modal" aria-hidden="true">
                  &times;
            </button>
            <h4 class="modal-title" >
                                  常用配置
            </h4>
         </div>
         <div class="modal-body">
         	<div>
         	    <table class="table table-bordered">
			        <tr>
				        <th>配置项</th>
				        <td><input type="text" style="width:350px" id="config_code"/></td>
				    </tr>
				    <tr>
				        <th>配置值</th>
				        <td><input type="text" style="width:350px" id="config_value" /></td>
				    </tr>
				    <tr>
				        <th>说明</th>
				        <td><input type="text" style="width:350px" id="config_confMemo" /></td>
				    </tr>
				      
			        <tr>
				        <th>操作</th>
			            <td>
			                <button type="button" class="btn btn-info btn-xs" ng-click="configSave()" > 保存</button>
			            </td>
			        </tr>
				</table>
         	</div>
         </div>
     </div>
</div>